package com.homework.ch0123;

public class Test6 {
    public static void main(String[] args) {
        // 方法1：使用L后缀确保使用long类型运算
        long millisecondsPerDay = 24L * 60 * 60 * 1000;
        long microsecondsPerDay = 24L * 60 * 60 * 1000 * 1000;

        System.out.println("每天毫秒数: " + millisecondsPerDay);
        System.out.println("每天微秒数: " + microsecondsPerDay);

        // 验证正确性
        System.out.println("是否正确: " + (microsecondsPerDay == 86400000000L));
    }
}
